<?php
use \GatewayWorker\Lib\Gateway;


class cmd_examtrain extends cmdbase
{
	public function onCmd($msg){
		//广播
		$user_id = $this->getCurUid();
		$notify_exam = new notify_exam();
		$notify_exam->uid = $user_id;
		$notify_exam->type = $msg->type;
		$this->sendToGroup(notify_exam::class, $notify_exam);

#error 123
		//退出组
		$msg_ret = new examtrain_rsp();
		$msg_ret->ret = NetErrorCode::None;

 		return $msg_ret;
	}
}